package com.imooc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * FileName: WechatAccountConfig.java
 * Description: 微信支付账号相关配置
 *
 * @author HuangRI(874668739 @ qq.com)
 * @version 1.0
 * @date 2020/12/24
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wechat")
public class WechatAccountConfig {

    /**
     * 公众平台：公众号appId
     */
    private String mpAppId;

    /**
     * 公众平台：公众号appSecret
     */
    private String mpAppSecret;

    /**
     * 开放平台：商家appId
     */
    private String openAppId;

    /**
     * 开放平台：商家appSecret
     */
    private String openAppSecret;

    /**
     * 商户号
     */
    private String mchId;

    /**
     * 商户密钥
     */
    private String mchKey;

    /**
     * 商户证书路径
     */
    private String keyPath;

    /**
     * 支付后异步通知地址
     */
    private String notifyUrl;

    /**
     * 模板消息ID map
     */
    private Map<String, String> templateId;
}
